class User {
  String loginName;
  String password;
  bool isSave = false;
  String userId = '0';
  String dlsId = '0';
  String dlsTopId = '0';
  String fwsId = '0' ;

  User(
      {this.loginName,
      this.password,
      this.isSave,
      this.userId,
      this.dlsId,
      this.dlsTopId,
      this.fwsId});

  factory User.fromJson(Map<String, dynamic> json) {
    try {
      return User(
          loginName: json['loginName'],
          password: json['password'],
          isSave: json['isSave'],
          userId: json['userId'],
          dlsId: json['dlsId'],
          dlsTopId: json['dlsTopId'],
          fwsId: json['fwsId'],
      );
    } catch (e) {
      return User();
    }
  }

   Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['loginName'] = this.loginName;
    data['password'] = this.password;
    data['isSave'] = this.isSave;
    data['userId'] = this.userId;
    data['dlsId'] = this.dlsId;
    data['dlsTopId'] = this.dlsTopId;
    data['fwsId'] = this.fwsId;
    return data;
  }
}
